package one.one.twentyOne;

import java.util.Arrays;
import java.util.Scanner;
/*
 jim 1 2
tom 56 3
smith 4 67
 */
public class Tab {

	static void star(int n) {
		for (int i = 0; i < n; i++) {
			System.out.print("-");
		}
	}
	
	static void empty(int n) {
		for (int i = 0; i < n; i++) {
			System.out.print(" ");
		}
	}

	static void tab() {
		Scanner scanner = new Scanner(System.in);
		String[] lines = new String[3];
		for (int i = 0; i < 3; i++) {
			lines[i] = scanner.nextLine();
		}
		star(45);
		System.out.println();

		for (int i = 0; i < 3; i++) {
			String[] line = lines[i].split(" ");
			
			System.out.print("|");//star(1);
			System.out.printf(line[0]);
			empty(10 - line[0].length());
			System.out.print("|");//star(1);
			
			System.out.printf("%d", Integer.parseInt(line[1]));
			empty(10 - line[1].length());
			System.out.print("|");//star(1);
			
			
			System.out.printf("%d", Integer.parseInt(line[2]));
			empty(10 - line[2].length());
			System.out.print("|");//star(1);
			
			//System.out.printf("%.3f", Double.parseDouble(line[1]) / Double.parseDouble(line[2]));
			String r=String.format("%.3f", Double.parseDouble(line[1]) / Double.parseDouble(line[2]));
			System.out.print(r);
			empty(10 - r.length());
			System.out.print("|");//star(1);
			System.out.println();
			star(45);
			System.out.println();
		}

		//star(45);
	}

	public static void main(String[] args) {
		// Scanner scanner = new Scanner(System.in);
		// System.out.println(scanner.nextLine());
		// String[] s = scanner.nextLine().split(" ");
		// System.out.println(Arrays.toString(s));

		tab();

	}

}
